package com.zhongfl.crm.lixiao.batch.jobs;

import com.zhongfl.crm.lixiao.batch.service.lx2crm.LxUserSyncService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author wang.yuchuan
 * @date 2018/6/24
 */
@Component
@Slf4j
public class LxUserSyncJob extends JobService {

    @Resource
    private LxUserSyncService lxUserSyncService;

    @Override
    public boolean lock() {
        return true;
    }

    @Override
    public void start() throws Exception {
        log.info("励销用户同步任务开始");

        lxUserSyncService.sync();

        log.info("励销用户同步任务完成");
    }
}
